package com.cloudgateway.config.modul;

import com.common.global.GlobalBaseEnum;

/**
 * Global default enum
 *
 * @description:
 * @author: cyj
 * @date 2022 -01-08 16:05:47
 *
 *
 */
public enum GatewayDefaultEnum implements GlobalBaseEnum {
    /**
     * Default error global default enum
     */
    DEFAULT_ERROR("3.0.0000", "网关执行失败: 【%s】"),
    ;


    /**
     * Code
     */
    private String code;

    /**
     * Message
     */
    private String message;

    /**
     * Global default enum
     *
     * @param code    code
     * @param message message
     */
    GatewayDefaultEnum(String code, String message) {
        this.code = code;
        this.message = message;
    }

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String message() {
        return this.message;
    }
}
